package edu.tamu.cs.studio;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.Window;
import android.view.WindowManager;

public class Tempgamescreen extends Activity{
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        requestWindowFeature(Window.FEATURE_NO_TITLE);
	        // making it full screen
	        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
	        WindowManager.LayoutParams.FLAG_FULLSCREEN);
	    	 // set our MainGamePanel as the View
	        setContentView(new GameView(this));
	        //setContentView(R.layout.tempgamescreen);
	}
	
	public boolean onCreateOptionsMenu(Menu menu) {
		MenuInflater inflater = getMenuInflater();
		inflater.inflate(R.menu.main, menu);
		return true;
	}
	
	public boolean onOptionsItemSelected(MenuItem item) {
		switch(item.getItemId()) {
			case R.id.menu_restart:
				//Do something
				finish();
				return true;
			case R.id.menu_quit:
				//Do something
				setResult(2);
				finish();
				return true;
			default:
				return super.onOptionsItemSelected(item);
		}
	}
	
	@Override
    protected void onDestroy()
    {
    	//Log.d(TAG,"Destroying...");
    	super.onDestroy();
    }
    
    @Override
    protected void onStop()
    {
    	//Log.d(TAG,"Stoping...");
    	super.onStop();
    }
}